<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
    <style></style>
</head>

<body>
    <script>
    document.title = '\u200E';

    function getExplorer() {
        var explorer = window.navigator.userAgent;

        //ie  
        if (explorer.indexOf("MSIE") >= 0 || explorer.indexOf("Trident") >= 0) {
            return 'ie';
        }
        //Edge
        else if (explorer.indexOf("Edge") >= 0) {
            return 'Edge';
        }
        //Android
        else if (explorer.indexOf("Android") >= 0) {
            return 'Android';
        }
        //iPhone
        else if (explorer.indexOf("iPhone") >= 0) {
            return 'iPhone';
        }
        //iPad
        else if (explorer.indexOf("iPad") >= 0) {
            return 'iPad';
        }
        //firefox  
        else if (explorer.indexOf("Firefox") >= 0) {
            return 'Firefox';
        }
        //Opera  
        else if (explorer.indexOf("OPR") >= 0 || explorer.indexOf("Opera") >= 0) {
            return 'Opera';
        }
        //Chrome  
        else if (explorer.indexOf("Chrome") >= 0) {
            return 'Chrome';
        }
        //Safari  
        else if (explorer.indexOf("Safari") >= 0) {
            return 'Safari';
        }
    };
    alert("你用的客户端是" + getExplorer());
    </script>
</body>

</html>